package pl.diagnoser.client.dto;


import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

import com.google.gwt.user.client.rpc.IsSerializable;

public class SearchResultDTO implements IsSerializable {

	private long searchResultId;
	private Timestamp date;
	private ObjectsDTO objects;
	private Set<SearchResultAttributesDTO> objectAttributes = new HashSet<SearchResultAttributesDTO>(0);
	
	public SearchResultDTO(){}
	public SearchResultDTO(long searchResultId, Timestamp date, ObjectsDTO objects) {
		super();
		this.searchResultId = searchResultId;
		this.date = date;
		this.objects = objects;
	}
	public SearchResultDTO(ObjectsDTO objects) {
		super();
		this.objects = objects;
	}
	
	public long getSearchResultId() {
		return searchResultId;
	}
	public void setSearchResultId(long searchResultId) {
		this.searchResultId = searchResultId;
	}
	
	public Timestamp getDate() {
		return date;
	}
	public void setDate(Timestamp date) {
		this.date = date;
	}
	
	public ObjectsDTO getObjects() {
		return objects;
	}
	public void setObjects(ObjectsDTO objects) {
		this.objects = objects;
	}
	
	public Set<SearchResultAttributesDTO> getObjectAttributes() {
		return objectAttributes;
	}
	public void setObjectAttributes(Set<SearchResultAttributesDTO> objectAttributes) {
		this.objectAttributes = objectAttributes;
	}
}
